package com.ruoyi.common.rabbit.configuration;

import com.ruoyi.common.rabbit.conditional.ConditionalOnRabbit;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * MQTT配置
 *
 * @Author: j.zh
 * @Date: 2024/3/12
 * @Version: 1.0
 **/
@Getter
@Setter
//@Component
@ConfigurationProperties("com.ruoyi.common.rabbit")
public class RabbitMqProperties {

    /**
     * 是否开启 RabbitMQ功能,
     * @see ConditionalOnRabbit 配合此注解使用
     */
    private boolean enable = false;

}

